package states 
{
	import flash.events.FocusEvent;
	import org.despair2D.ui.puppet.InputTextPuppet;
	import org.despair2D.ui.UIState;
	
	public class TextUIState extends UIState 
	{
		
		override public function enter( stateArgs:Array ) :void
		{
			var input:InputTextPuppet
			
			input = new InputTextPuppet(100,25)
			input.backgroundColor = 0xDDDDDD
			input.size = 16
			input.maxChars = 8
			input.addEventListener(FocusEvent.FOCUS_OUT, function(e:FocusEvent):void
			{
				trace('FOCUS_OUT')
			})
			this.fusion.addElement(input , 100, 100)
		}
		
		override public function exit() :void
		{
			
		}
	}

}